import sys
from tracking.trainer import Trainer
import os

try:
	video_dir = sys.argv[1]
except IndexError:
	print "Usage: python train.py <video_directory>"
	exit()

video_dir = os.path.abspath(video_dir)
trainer = Trainer(video_dir, iterations=300)
trainer.train()
